const UserController=require('./controller/UserController')
module.exports=(app)=>{
    app.get('/api',(req,res)=>{
        res.send({
            msg:'hello node'
        })
    })
    app.get('/users/:id',UserController.getUserById)
    app.put('/users/:id',UserController.update)
    app.post('/users',UserController.register)
    app.delete('/users/:id',UserController.delete)
}